# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=clipman
pkgver=1.5.2
pkgrel=0
pkgdesc="A simple clipboard manager for Wayland"
url="https://github.com/yory8/clipman"
arch="all"
license="GPL-3.0-only"
depends="wl-clipboard"
makedepends="go"
options="!check" # no tests
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/yory8/clipman/archive/v$pkgver.tar.gz"

build() {
	go build -o $pkgname
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 docs/clipman.1 -t "$pkgdir"/usr/share/man/man1
}
sha512sums="26247e07407b32672cf6dfb71c95036eaee5cdcd07231e33374ff1f0d45009407fcaf600d12bd6788da32f0c61e89503b95aff67a28581283d5ab9cee70ceb12  clipman-1.5.2.tar.gz"
